package cn.stylefeng.guns.modular.fruits.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.fruits.entity.FruitsStorageStock;
import cn.stylefeng.guns.modular.fruits.model.params.FruitsStorageStockParam;
import cn.stylefeng.guns.modular.fruits.model.result.FruitsStorageStockResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 库存管理 服务类
 */
public interface FruitsStorageStockService extends IService<FruitsStorageStock> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-06-15
     */
    void add(FruitsStorageStockParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-06-15
     */
    void delete(FruitsStorageStockParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-06-15
     */
    void update(FruitsStorageStockParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-15
     */
    FruitsStorageStockResult findBySpec(FruitsStorageStockParam param,Long operateId);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-15
     */
    List<FruitsStorageStockResult> findListBySpec(FruitsStorageStockParam param,Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-15
     */
     LayuiPageInfo findPageBySpec(FruitsStorageStockParam param,String condition,Long operateId);

	List<FruitsStorageStockResult> findStorageStockSumBySpec(FruitsStorageStockParam param,Long operateId);

	List<FruitsStorageStockResult> findStorageStockSumBySpec2(FruitsStorageStockParam param,Long operateId);

	List<FruitsStorageStockResult> findStorageStockSumBySpec3(FruitsStorageStockParam param,Long operateId);

	List<FruitsStorageStockResult> findStorageStockSumBySpec4(FruitsStorageStockParam param,Long operateId);

	List<FruitsStorageStockResult> findStorageStockSum(FruitsStorageStockParam param);

	FruitsStorageStockResult findBySpecGt(FruitsStorageStockParam param,Long operateId);

	FruitsStorageStockResult findBySpecByPositionNumber(FruitsStorageStockParam param,Long operateId);

	List<FruitsStorageStockResult> findListBySpecAndPositionNumber(FruitsStorageStockParam param,Long operateId);

}
